<template>
  <div class="VD-Related">
    <div class="img">
      <img :src="VDrecVideoList.cover" alt="" />
      <span>
        <i class="iconfont icon-caozuo-bofang"></i>{{ getplayCount }}
      </span>
    </div>
    <div class="text">
      <h4>{{ VDrecVideoList.name }}</h4>
      <p>{{ VDrecVideoList.artistName }}</p>
    </div>
  </div>
</template>

<script>

export default {
  props: {
    VDrecVideoList: {
      type: Object,
    },
  },
  created() {
    // console.log('666',this.VDrecVideoList);

    // this.getrecVideoList();
    // this.getVideoDetails();
  },
  computed: {
    getplayCount() {
      if (this.VDrecVideoList.playCount > 10000) {
        let nums = (this.VDrecVideoList.playCount / 10000).toFixed(1) + "万";
        return nums;
      } else {
        return this.VDrecVideoList.playCount;
      }
    },
    
  },
  data() {
    return {
      videodetail: [],
      videoUrl:'',
    };
  },
  methods: {
    // // 点击跳转路由，并传递参数
    // getvideodetailF(item) {
    //   console.log('传递过来的参数',item);
    //   this.$router.replace({path:'/videodetails',query:{item}})
    //   // this.$router.go(0)
    // },

  },
};
</script>

<style scorped lang="scss">
.VD-Related {
  width: 100%;
  display: flex;
  // justify-content: space-between;
  margin: 40px;
  position: relative;
  .img {
    width: 600px;
    height: 333px;
    margin-right: 33px;
    img {
      width: 600px;
      height: 333px;
      border-radius: 33px;
    }
    span {
      position: absolute;
      left: 15px;
      bottom: 20px;
      color: #fff;
      font-size: 33px;
      display: flex;
      justify-content: center;
      align-items: center;
      i {
        font-size: 86px;
        margin-right: 15px;
      }
    }
  }
  .text {
    h4 {
      font-weight: 500;
    }
    p {
      font-size: 55px;
      position: absolute;
      bottom: 0;
      left: 633px;
      color: #646464;
    }
  }
}
</style>